////////////////////////////////////////////////////////////////////////////////
//
//  The ffi Document Processor
//  Copyright (C) 2012 by Kevin Carlson. All rights reserved.
//
//  This application is released under the terms of the Simplified (2-clause)
//  BSD License. For details, see the LICENSE file in the source distribution.
//
////////////////////////////////////////////////////////////////////////////////

#ifndef FFITEXTBLOCK_H
#define	FFITEXTBLOCK_H

#include <string>
#include "ffiParagraphStyle.h"
#include "ffiDocumentBlock.h"

using namespace std;

class FfiTextBlock: public FfiDocumentBlock
{
    string text;
    FfiParagraphStyle style;
public:
    FfiTextBlock();
    virtual ~FfiTextBlock();
    
    int getCursorPosition();
    int getLength();
    
    void deleteCharacterLeft();
    void deleteCharacterRight();
    void insertCharacter(char c);
};

#endif

